<?php
if ( !defined('IN_ADMINCP') || !defined('IN_SEC') ){
	exit('Access Denied.');
}

$id = intval($_G['gp_id']);

if ( $id ){
	if ( !$group = fetch('admincp_group', $id) ){
		$admincp->cpmsg('系统繁忙');
	}
	$users = DB::Limit('admincp_member', array('groupid' => $id));
	$tmpname = '_list';
}else{
	$groups = parse_array(limitquery('admincp_group'));
	$departments = parse_array(limitquery('admincp_department'));
}
?>